﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PartyOrgMemberMassList.aspx.cs" Inherits="SysManage.Module.Org.PartyOrgMemberMassList" %>


<!DOCTYPE html>
<html>
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
        <f:Panel ID="Panel1" runat="server" BodyPadding="5px"
            ShowBorder="false" Layout="VBox" BoxConfigAlign="Stretch"
            BoxConfigPosition="Start" ShowHeader="false" Title="">
            <Items>
                <f:Form ID="Form2" runat="server" Height="36px" BodyPadding="5px" ShowHeader="false"
                    ShowBorder="false" LabelAlign="Right">
                    <Rows>
                        <f:FormRow ID="FormRow1" runat="server">
                            <Items>
                                <f:Panel ID="Panel2" ShowHeader="false" CssClass="formitem" ShowBorder="false"
                                    Layout="HBox" runat="server">
                                    <Items>
                                        <f:TextBox ID="txtTitle" BoxFlex="1" runat="server" EmptyText="在用户名、手机号码、身份证中搜索"
                                            Label="关键字" LabelAlign="right" Width="150px" LabelWidth="60px">
                                        </f:TextBox>

                                        <f:Button ID="btnSearch" Margin="0 0 0 5" runat="server" Text="搜索" OnClick="btnSearch_Click" IconAlign="Right"></f:Button>
                                        <f:Label ID="TextBox1" BoxFlex="2" runat="server">
                                        </f:Label>
                                    </Items>
                                </f:Panel>

                            </Items>
                        </f:FormRow>
                    </Rows>
                </f:Form>
                <f:Grid ID="Grid1" runat="server" BoxFlex="1" ShowBorder="true" ShowHeader="false"
                    EnableCheckBoxSelect="true"
                    DataKeyNames="ID,UserName" AllowSorting="false" OnSort="Grid1_Sort" SortField="UserName"
                    SortDirection="DESC" AllowPaging="true" IsDatabasePaging="true" OnPreDataBound="Grid1_PreDataBound"
                    OnPreRowDataBound="Grid1_PreRowDataBound"
                    OnRowCommand="Grid1_RowCommand" OnPageIndexChange="Grid1_PageIndexChange">
                    <Toolbars>
                        <f:Toolbar ID="Toolbar1" runat="server">
                            <Items>
                                <f:Button ID="btnDeleteSelected" Icon="Delete" runat="server" Text="删除选中记录" OnClick="btnDeleteSelected_Click">
                                </f:Button>
                                <f:ToolbarSeparator runat="server">
                                </f:ToolbarSeparator>


                            </Items>
                        </f:Toolbar>
                    </Toolbars>
                    <PageItems>
                        <f:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
                        </f:ToolbarSeparator>
                        <f:ToolbarText ID="ToolbarText1" runat="server" Text="每页记录数：">
                        </f:ToolbarText>
                        <f:DropDownList ID="ddlGridPageSize" Width="80px" AutoPostBack="true" OnSelectedIndexChanged="ddlGridPageSize_SelectedIndexChanged"
                            runat="server">
                            <f:ListItem Text="10" Value="10" />
                            <f:ListItem Text="20" Value="20" />
                            <f:ListItem Text="50" Value="50" />
                            <f:ListItem Text="100" Value="100" />
                        </f:DropDownList>
                    </PageItems>
                    <Columns>
                        <f:RowNumberField Width="35px" EnablePagingNumber="true" />
                        <f:BoundField DataField="UserName" SortField="UserName" ExpandUnusedSpace="true" HeaderText="用户名" />
                        <f:BoundField DataField="CreateTime" SortField="CreateTime" ExpandUnusedSpace="true" Width="150px" HeaderText="注册时间" />
                        <f:BoundField DataField="MobileNo" SortField="MobileNo" TextAlign="Center" Width="100px" HeaderText="手机号码" />
                        <f:BoundField DataField="IdentityCard" SortField="IdentityCard" Width="150px" TextAlign="Center" HeaderText="身份证号" />

                        <%-- <f:RenderField Width="60px" ColumnID="Gender" DataField="Gender" FieldType="Int"
                                    RendererFunction="renderGender" TextAlign="Center" RendererArgument="Gender" HeaderText="性别">
                                </f:RenderField>
                        --%>
                        <f:WindowField ColumnID="changePasswordField" TextAlign="Center" Icon="Key" ToolTip="修改密码" HeaderText="修改密码"
                            WindowID="WindowPassword" Title="修改密码" DataIFrameUrlFields="ID" DataIFrameUrlFormatString="ChangePassword.aspx?id={0}"
                            Width="90px" />
                        <f:WindowField ColumnID="editField" TextAlign="Center" Icon="Pencil" HeaderText="编辑"
                                    WindowID="Window1" DataIFrameUrlFields="LoginID" DataIFrameUrlFormatString="PartyOrgMemberMassEdit.aspx?id={0}"
                                    Width="50px" />
                        <f:LinkButtonField ColumnID="deleteField" TextAlign="Center" Icon="Delete" ToolTip="删除" HeaderText="删除"
                            ConfirmText="确定删除此记录？" ConfirmTarget="Top" CommandName="Delete" Width="50px" />
                    </Columns>
                </f:Grid>
            </Items>
        </f:Panel>
        <f:Window ID="Window1" CloseAction="Hide" runat="server" IsModal="true" Hidden="true" Target="Top"
            EnableResize="true" EnableMaximize="true" EnableIFrame="true" IFrameUrl="about:blank"
            Width="700px" Height="250px" OnClose="Window1_Close">
        </f:Window>
        <f:Window ID="WindowPassword" runat="server" IsModal="true" Hidden="true" Target="Top" EnableResize="true"
            EnableMaximize="true" EnableIFrame="true" IFrameUrl="about:blank" Width="330px"
            Height="250px" OnClose="Window1_Close">
        </f:Window>
    </form>
</body>
</html>

<script type="text/javascript">

    function renderGender(value) {
        if (value == "1") {
            return "女";
        } else if (value == "0") {
            return "男";
        }
        return "未知";
    };


</script>
